package cn.bdmcom.result;

/**
 * @code Description
 * @code author 本当迷
 * @code date 2022/10/8-11:06
 */
public enum ResultCode {
    /*系统状态码*/
    SUCCESS("20000", "成功"),
    ERROR("-1", "系统异常"),

    /*用户状态码*/
    PARAM_ERROR("1001", "参数异常"),
    USER_EXIST_ERROR("2001", "用户已存在"),
    USER_ACCOUNT_ERROR("2002", "账号或密码错误"),
    USER_NOT_EXIST_ERROR("2003", "未找到用户"),
    PARAM_LOST_ERROR("2004", "参数缺失"),
    PARAM_PASSWORD_ERROR("2005", "原密码输入错误"),

    /*文件状态码*/
    FILE_TYPE("3001", "文件类型错误"),

    /*token状态码*/
    TOKEN_ISNULL("4001", "token不能为空"),
    TOKEN_INVALID("4002", "token无效"),
    TOKEN_TIMEOUT("4003", "token过期"),
    TOKEN_Algorithm("4004", "签名算法不一致"),
    TOKEN_SIGNATURE("4005", "无效签名"),
    ;

    public final String code;
    public final String msg;

    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}


